package com.oto.message;

import com.oto.api.Message;

/**
 * @author xueqiang.mi
 * @since 2011-1-9
 */
public abstract class AbstractMessage implements Message {
	private static final long serialVersionUID = -3842826954874891062L;
	
	private int type;
	protected Object data;

	public Object getData() {
		return data;
	}

	public int getType() {
		return type;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public void setType(int type) {
		this.type = type;
	}
}
